<!--
 * @Description:
 * @Author: dh
 * @Date: 2021-09-02 08:57:28
 * @LastEditors: dh
 * @LastEditTime: 2023-08-09 15:40:09
-->
<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>css 打字效果</title>
	</head>
	<style></style>

	<body>
		<h1>Pure CSS Typing animation.</h1>
		<style>
			h1 {
				white-space: nowrap;
				overflow: hidden;
				/* TODO */
				font-family: monospace;
				width: 26ch;
				animation: typing 3s steps(26, end);
			}

			@keyframes typing {
				0% {
					width: 0;
				}

				100% {
					width: 26ch;
				}
			}
		</style>
	</body>
</html>
